home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / ColorSync / Interfaces / CIncludes / CMMComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-23  |  6.0 KB  |  166 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CMMComponent.h
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    2.0f3
  8.  
  9.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, send the file and version
  13.                  information (from above) and the problem description to:
  14.  
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __CMMCOMPONENT__
  21. #define __CMMCOMPONENT__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __QUICKDRAW__
  30. #include <Quickdraw.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <QuickdrawText.h>                                    */
  34. /*        #include <ScriptLayout.h>                                */
  35.  
  36. #ifndef __COMPONENTS__
  37. #include <Components.h>
  38. #endif
  39.  
  40. #ifndef __CMAPPLICATION__
  41. #include <CMApplication.h>
  42. #endif
  43. /*    #include <Files.h>                                            */
  44. /*        #include <OSUtils.h>                                    */
  45. /*            #include <Memory.h>                                    */
  46. /*        #include <Finder.h>                                        */
  47. /*    #include <Printing.h>                                        */
  48. /*        #include <Errors.h>                                        */
  49. /*        #include <Dialogs.h>                                    */
  50. /*            #include <Windows.h>                                */
  51. /*                #include <Events.h>                                */
  52. /*                #include <Controls.h>                            */
  53. /*                    #include <Collections.h>                    */
  54. /*                    #include <Appearance.h>                        */
  55. /*                    #include <TextObjects.h>                    */
  56. /*                        #include <Unicode.h>                    */
  57. /*                    #include <Menus.h>                            */
  58. /*                #include <AppleEvents.h>                        */
  59. /*                    #include <EPPC.h>                            */
  60. /*                        #include <AppleTalk.h>                    */
  61. /*                        #include <PPCToolbox.h>                    */
  62. /*                        #include <Processes.h>                    */
  63. /*                    #include <Notification.h>                    */
  64. /*                        #include <Kernel.h>                        */
  65. /*                            #include <MachineExceptions.h>        */
  66. /*                            #include <Timing.h>                    */
  67. /*                #include <Drag.h>                                */
  68. /*                    #include <TextEdit.h>                        */
  69. /*    #include <CMICCProfile.h>                                    */
  70.  
  71. #ifdef __cplusplus
  72. extern "C" {
  73. #endif
  74.  
  75. #if GENERATINGPOWERPC
  76. #pragma options align=mac68k
  77. #endif
  78.  
  79. #ifdef __CFM68K__
  80. #pragma import on
  81. #endif
  82.  
  83.  
  84. enum {
  85.     CMMInterfaceVersion            = 1
  86. };
  87.  
  88. /* Component function selectors */
  89. /* Required */
  90. enum {
  91.     kCMMInit                    = 0,
  92.     kNCMMInit                    = 6,
  93.     kCMMMatchColors                = 1,
  94.     kCMMCheckColors                = 2
  95. };
  96.  
  97. /* Optional */
  98. enum {
  99.     kCMMValidateProfile            = 8,
  100.     kCMMFlattenProfile            = 14,
  101.     kCMMUnflattenProfile        = 15,
  102.     kCMMMatchBitmap                = 9,
  103.     kCMMCheckBitmap                = 10,
  104.     kCMMMatchPixMap                = 3,
  105.     kCMMCheckPixMap                = 4,
  106.     kCMMConcatenateProfiles        = 5,
  107.     kCMMConcatInit                = 7,
  108.     kCMMNewLinkProfile            = 16,
  109.     kCMMGetPS2ColorSpace        = 11,
  110.     kCMMGetPS2ColorRenderingIntent = 12,
  111.     kCMMGetPS2ColorRendering    = 13,
  112.     kCMMGetPS2ColorRenderingVMSize = 17
  113. };
  114.  
  115. extern pascal CMError NCMInit(ComponentInstance CMSession, CMProfileRef srcProfile, CMProfileRef dstProfile)
  116.  FIVEWORDINLINE(0x2F3C, 8, 6, 0x7000, 0xA82A);
  117. extern pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  118.  FIVEWORDINLINE(0x2F3C, 8, 0, 0x7000, 0xA82A);
  119. extern pascal CMError CMMatchColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count)
  120.  FIVEWORDINLINE(0x2F3C, 8, 1, 0x7000, 0xA82A);
  121. extern pascal CMError CMCheckColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count, long *result)
  122.  FIVEWORDINLINE(0x2F3C, 12, 2, 0x7000, 0xA82A);
  123. /* Optional functions */
  124. extern pascal CMError CMMValidateProfile(ComponentInstance CMSession, CMProfileRef prof, Boolean *valid)
  125.  FIVEWORDINLINE(0x2F3C, 8, 8, 0x7000, 0xA82A);
  126. extern pascal CMError CMMFlattenProfile(ComponentInstance CMSession, CMProfileRef prof, unsigned long flags, CMFlattenUPP proc, void *refCon)
  127.  FIVEWORDINLINE(0x2F3C, 16, 14, 0x7000, 0xA82A);
  128. extern pascal CMError CMMUnflattenProfile(ComponentInstance CMSession, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  129.  FIVEWORDINLINE(0x2F3C, 12, 15, 0x7000, 0xA82A);
  130. extern pascal CMError CMMatchBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  131.  FIVEWORDINLINE(0x2F3C, 16, 9, 0x7000, 0xA82A);
  132. extern pascal CMError CMCheckBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  133.  FIVEWORDINLINE(0x2F3C, 16, 10, 0x7000, 0xA82A);
  134. extern pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  135.  FIVEWORDINLINE(0x2F3C, 12, 3, 0x7000, 0xA82A);
  136. extern pascal CMError CMCheckPixMap(ComponentInstance CMSession, const PixMap *myPixMap, CMBitmapCallBackUPP progressProc, BitMap *myBitMap, void *refCon)
  137.  FIVEWORDINLINE(0x2F3C, 16, 4, 0x7000, 0xA82A);
  138. extern pascal CMError CMConcatInit(ComponentInstance CMSession, CMConcatProfileSet *profileSet)
  139.  FIVEWORDINLINE(0x2F3C, 4, 7, 0x7000, 0xA82A);
  140. extern pascal CMError CMNewLinkProfile(ComponentInstance CMSession, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  141.  FIVEWORDINLINE(0x2F3C, 12, 16, 0x7000, 0xA82A);
  142. extern pascal CMError CMMGetPS2ColorSpace(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  143.  FIVEWORDINLINE(0x2F3C, 16, 11, 0x7000, 0xA82A);
  144. extern pascal CMError CMMGetPS2ColorRenderingIntent(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  145.  FIVEWORDINLINE(0x2F3C, 16, 12, 0x7000, 0xA82A);
  146. extern pascal CMError CMMGetPS2ColorRendering(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  147.  FIVEWORDINLINE(0x2F3C, 20, 13, 0x7000, 0xA82A);
  148. extern pascal CMError CMMGetPS2ColorRenderingVMSize(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long *vmSize)
  149.  FIVEWORDINLINE(0x2F3C, 12, 17, 0x7000, 0xA82A);
  150. extern pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  151.  FIVEWORDINLINE(0x2F3C, 12, 5, 0x7000, 0xA82A);
  152.  
  153. #ifdef __CFM68K__
  154. #pragma import off
  155. #endif
  156.  
  157. #if GENERATINGPOWERPC
  158. #pragma options align=reset
  159. #endif
  160.  
  161. #ifdef __cplusplus
  162. }
  163. #endif
  164.  
  165. #endif /* __CMMCOMPONENT__ */
  166.